package com.bw.trade.controller;


import com.bw.trade.monitor.MqServiceListener;
import com.bw.trade.pojo.TbBorrowLog;
import com.bw.trade.service.TbBorrowLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 借款记录表 前端控制器
 * </p>
 *
 * @author lv
 * @since 2021-03-23
 */
@RestController
@RequestMapping("/tb-borrow-log")
public class TbBorrowLogController {

    @Autowired
    private TbBorrowLogService borrowLogService;
    @Autowired
    private MqServiceListener serviceListener;

    @GetMapping("/list")
    public List<TbBorrowLog> list(){
        //serviceListener.getMsg();
        borrowLogService.searchOrder();
        return borrowLogService.list();
    }


}
